﻿using Microsoft.Extensions.Caching.Memory;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Attributes
{
    public class CachingAttribute : Attribute
    {
        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTimeOffset AbsoluteExpiration { get; set; } = DateTimeOffset.Now.AddMinutes(30);

        /// <summary>
        /// 缓存删除优先级
        /// </summary>
        public CacheItemPriority Priority { get; set; } = CacheItemPriority.Normal;
    }
}
